package encapsulation;

public class Printer {

	private String make;
	private String modelNo;
	private String printerType;
	private String color;
	private boolean withWifi;
	private boolean copier;
	private boolean scanner;
	private boolean started;

	// Constructor

	Printer(String make, String modelNo, String printerType, String color,
			boolean scanner, boolean withWifi) {
		this.make = make;
		this.modelNo = modelNo;
		this.printerType = printerType;
		this.scanner = scanner;
		this.color = color;
		this.withWifi = withWifi;

	}

	// method to check if the system is on

	boolean start() {
		started = true;
		//System.out.println("Printer has started");
		return started;
	}

	boolean stop()

	{
		started = true;
		//System.out.println("Printer has stopped");
		return started;
	}

	// forloop
	//method to print documents according to input number , 
	int printCopies(int howManyCopies)
	
	    { 
		System.out.println("No of copies: "+ howManyCopies );
		return howManyCopies;
	}

	// method to print Documents

	void  PrintDocuments(String typeOfDocument) {

		{
			
			switch (typeOfDocument) {
			case "TAX":
				System.out.println("Type of documents:  "+typeOfDocument);
				break;
			case "PROPERTY":
				System.out.println("Type of documents:  "+typeOfDocument);
				break;
			case "ADDMISSION":
				System.out.println("Type of documents:  "+typeOfDocument);
				break;
			case "LEASE":
				System.out.println("Type of documents:  "+typeOfDocument);
				break;

			default:

				System.out.println("Invalid Case, Please Select Valid Type of documents");
			}
		}
			
	}

	public String getColor() {
		return color;
	}

	public void setColor(String color) {
		this.color = color;
	}

	public String getMake() {
		return make;
	}

	public String getModelNo() {
		return modelNo;
	}

	public String getPrinterType() {
		return printerType;
	}

	public boolean isWithWifi() {
		return withWifi;
	}

	public boolean isCopier() {
		return copier;
	}

	public boolean isScanner() {
		return scanner;
	}
}
